package dobest.ray.com.jiongjiong.activity.wanttoknow.professionalSpeaker;

import android.os.Bundle;

import com.handmark.pulltorefresh.library.PullToRefreshBase;
import com.handmark.pulltorefresh.library.PullToRefreshListView;

import dobest.ray.com.jiongjiong.R;
import dobest.ray.com.jiongjiong.activity.BaseActivity;
import dobest.ray.com.jiongjiong.adapter.ProfessionalSpeakerAdapter;
import dobest.ray.com.jiongjiong.views.NavigationBar;

/**
 * Created by Ray on 2016/3/22.
 * https://github.com/ray0807
 * 专家讲座
 */
public class ProfessionalSpeakerActivity extends BaseActivity {

    private PullToRefreshListView ptr_list;
    private ProfessionalSpeakerAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_professional_speaker);
        findViews();
        init();
        addListeners();
    }

    @Override
    public void findViews() {
        navi = (NavigationBar) findViewById(R.id.navi);
        navi.setTitle("专家讲座");
        navi.setBackListener(R.mipmap.img_back, "");

        ptr_list = (PullToRefreshListView) findViewById(R.id.ptr_list);
    }

    @Override
    public void init() {
        ptr_list.setMode(PullToRefreshBase.Mode.BOTH);
        adapter = new ProfessionalSpeakerAdapter(this);
        ptr_list.setAdapter(adapter);
    }

    @Override
    public void addListeners() {

    }
}
